package org.rabbitmq.topic.provider;


import org.junit.Test;
import org.junit.runner.RunWith;
import org.rabbitmq.topic.provider.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
*@author LSY
*Time: 2018年12月7日下午2:27:01
*
*
*/
@SpringBootTest(classes = RabbitMqTopicProviderApplication.class)
@RunWith(SpringRunner.class)
public class RabbitMqTester {

	@Autowired
	private UserService userService;

    /**
       * 模拟随机创建用户 & 发送消息到注册用户消息队列
     * @throws Exception
     */
    @Test
    public void testTopicMessage() throws Exception
    {
        userService.randomCreateUser();
    }

}
